using System.Drawing;

namespace GDI
{
    public class Cycle : Ellipse
    {
        public float R
        {
            get { return Rect.Width / 2; }
            set { Rect = new RectangleF(Center.Substract(value), new SizeF(2 * value, 2 * value)); }
        }

        public Cycle(float R, Pen pen, Brush FeelBrush = null) : base(new RectangleF(-R / 2, -R / 2, R, R), pen, FeelBrush) { }
        public Cycle() : this(10, Pens.Black) { }

        public void Set(float R, PointF Center)
        {
            this.R = R;
            this.Center = Center;
        }
    }
}